package com.example.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Jm
 * @date 2024/7/16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "criterion")
public class Criterion
{
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String content;

    private Integer parent;

    private Integer level;

    private String parentContent;

    private Integer templateId;

    @TableField(exist = false)
    private List<Criterion> child;


    @TableField(exist = false)
    private Double score;

    @TableField(exist = false)
    private Double expertScore;

    @TableField(exist = false)
    private List<ProjectFile> files;
}
